package com.siwei.mes.entity.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Size;
import java.io.Serializable;


/**
 * 企业信息配置表(CompanyConfig)实体类
 *
 * @author makejava
 * @since 2024-11-21 20:02:56
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_company_config")
@ApiModel(value = "CompanyConfig", description = "企业信息配置表")
public class CompanyConfig implements Serializable {
    private static final long serialVersionUID = -69171818468735857L;
    @Id
    @ApiModelProperty(value = "企业信息配置表主键ID", name = "id")
    private Long id;
    /**
     * 企业名称
     */
    @Column(name = "company_name")
    @ApiModelProperty(value = "企业名称", name = "companyName")
    private String companyName;
    /**
     * 企业协会会员号
     */
    @Column(name = "company_association_member")
    @ApiModelProperty(value = "企业协会会员号", name = "companyAssociationMember")
    private String companyAssociationMember;
    /**
     * 配比贯标
     */
    @Column(name = "proportioning_iso")
    @ApiModelProperty(value = "配比贯标", name = "proportioningIso")
    private String proportioningIso;
    /**
     * 质量证明书贯标
     */
    @Column(name = "quality_certificate_iso")
    @ApiModelProperty(value = "质量证明书贯标", name = "qualityCertificateIso")
    private String qualityCertificateIso;
    /**
     * 初始化质量证明书编号
     */
    @Column(name = "quality_certificate_no")
    @ApiModelProperty(value = "初始化质量证明书编号", name = "qualityCertificateNo")
    @Size(max = 5, min = 1, message = "初始化质量证明书编号最大为5位数")
    private String qualityCertificateNo;
    /**
     * 质量证明书贯标
     */
    @Column(name = "company_record")
    @ApiModelProperty(value = "企业备案证号", name = "companyRecord")
    private String companyRecord;
    /**
     * 开盘鉴定台账编号
     */
    @Column(name = "open_appraisal_no")
    @ApiModelProperty(value = "开盘鉴定台账编号", name = "openAppraisalNo")
    private String openAppraisalNo;
    /**
     * 配合比通知单编号
     */
    @Column(name = "mix_proportion_no")
    @ApiModelProperty(value = "配合比通知单编号", name = "mixProportionNo")
    private String mixProportionNo;
    /**
     * 配合比通知单编号
     */
    @Column(name = "kllz_sample_no")
    @ApiModelProperty(value = "混凝土抗氯离子台账样品编号", name = "kllzSampleNo")
    private String kllzSampleNo;
    /**
     * 配合比通知单编号
     */
    @Column(name = "kllz_consign_id")
    @ApiModelProperty(value = "混凝土抗氯离子台账委托编号", name = "kllzConsignId")
    private String kllzConsignId;
    /**
     * 配合比通知单编号
     */
    @Column(name = "kllz_report_id")
    @ApiModelProperty(value = "混凝土抗氯离子台账报告编号", name = "kllzReportId")
    private String kllzReportId;


    @Column(name = "sn_config")
    @ApiModelProperty(value = "水泥配置  1-厂家 2-供应商")
    private Integer snConfig;

    @Column(name = "fmh_config")
    @ApiModelProperty(value = "粉煤灰配置  1-厂家 2-供应商")
    private Integer fmhConfig;

    @Column(name = "kzf_config")
    @ApiModelProperty(value = "矿渣粉配置  1-厂家 2-供应商")
    private Integer kzfConfig;

    @Column(name = "xgl_config")
    @ApiModelProperty(value = "细骨料配置  1-厂家 2-供应商")
    private Integer xglConfig;

    @Column(name = "cgl_config")
    @ApiModelProperty(value = "粗骨料配置  1-厂家 2-供应商")
    private Integer cglConfig;

    @Column(name = "wjj_config")
    @ApiModelProperty(value = "外加剂配置  1-厂家 2-供应商")
    private Integer wjjConfig;

    @Column(name = "wjj2_config")
    @ApiModelProperty(value = "外加剂配置2  1-厂家 2-供应商")
    private Integer wjj2Config;

    @Column(name = "wcl1_config")
    @ApiModelProperty(value = "外掺料1配置  1-厂家 2-供应商")
    private Integer wcl1Config;

    @Column(name = "wcl2_config")
    @ApiModelProperty(value = "外掺料2配置  1-厂家 2-供应商")
    private Integer wcl2Config;

    @Transient
    @ApiModelProperty(value = "对外报告是否显示细骨料氯离子含量")
    private String xglLlz;

    @Transient
    @ApiModelProperty(value = "对外报告是否显示混凝土氯离子含量")
    private String hntLlz;
}
